﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hp.Vertica.Migration.SqlServer
{
    class SqlDataType_Float : SqlDataTypeWithPrecision
    {
        public SqlDataType_Float() { }
        public SqlDataType_Float(Int32 precision) : base(precision) { }



        public override string Name
        {
            get { return "FLOAT"; }
        }

        public override int MinPrecision
        {
            get { return 1; }
        }

        public override int MaxPrecision
        {
            get { return 53; }
        }

        public override int DefaultPrecision
        {
            get { return 53; }
        }

        public override Client.Internal.VerticaDataType VerticaDataType
        {
            get { return new Client.Internal.VerticaDataType_Float(this.Precision); }
        }

        public override System.Data.SqlDbType SystemDataType
        {
            get { return System.Data.SqlDbType.Float; }
        }

        public override string ToString()
        {
            return this.Name;
        }
    }
}
